@import "../../style/default";
/* apes-todo */
$todo-prefix-cls: #{$style-prefix}-todo;

.#{$todo-prefix-cls} {
  cursor: pointer;
  display: inline-block;
  transition: all 0.3s;
  &-con {
    width: 336px;
    .#{$style-prefix}-popover-inner-content {
      padding: 0;
    }
    .#{$style-prefix}-tabs-bar {
      margin-bottom: 4px;
    }
    .#{$style-prefix}-tabs-nav-scroll {
      text-align: center;
    }
    .#{$style-prefix}-tabs-nav {
      .#{$style-prefix}-tabs-tab {
        margin-right: 32px;
        padding: 12px 16px;
        &:last-child {
          margin-right: 0;
        }
      }
    }
    .not-found {
      text-align: center;
      padding: 73px 0 88px;
      color: $text-color-secondary;
      img {
        display: inline-block;
        margin-bottom: 16px;
        height: 76px;
      }
    }
    .clear {
      height: 46px;
      line-height: 46px;
      text-align: center;
      color: $text-color;
      border-radius: 0 0 $border-radius-base $border-radius-base;
      border-top: 1px solid $border-color-split;
      transition: all 0.3s;
      cursor: pointer;
      &:hover {
        color: $heading-color;
      }
    }
    .#{$style-prefix}-list {
      max-height: 400px;
      overflow: auto;
      .#{$style-prefix}-list-item {
        transition: all 0.3s;
        overflow: hidden;
        cursor: pointer;
        padding-left: 24px;
        padding-right: 24px;
        .#{$style-prefix}-list-item-meta {
          width: 100%;
        }
        .#{$style-prefix}-avatar {
          background: #fff;
          margin-top: 4px;
        }
        &.read {
          opacity: 0.4;
        }
        &:last-child {
          border-bottom: 0;
        }
        &:hover {
          background: $primary-1;
        }
        .#{$style-prefix}-list-item-meta-title {
          font-weight: normal;
          margin-bottom: 8px;
        }
        .description {
          font-size: 12px;
          line-height: $line-height-base;
        }
        .datetime {
          font-size: 12px;
          margin-top: 4px;
          line-height: $line-height-base;
        }
        .extra {
          float: right;
          color: $text-color-secondary;
          font-weight: normal;
          margin-right: 0;
          margin-top: -1.5px;
        }
      }
    }
  }
}

.backlog-drawer {
  height : 100%;
  padding: 16px 16px 8px;
  background : #fefefe;
  .todo-list-main {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    height: 100%;
    padding-bottom: 10px;
    .todo-list-main-content {
      margin: 0 5px;
      height: 100%;
      background: #eee;
      overflow-x: hidden;
      overflow-y: auto;
      min-width: 290px;
      .apes-card-body {
        padding: 8px;
        .not-found {
          font-size: 14px;
          font-weight: 700;
          text-align: center;
          .not-found-title {
            margin: auto 0;
          }
        }
        .todo-genre {
          font-size: 14px;
          font-weight: 700;
          display: flex;
          justify-content: space-between;
          margin: 8px 0;
          height: 28px;
          .todo-genre-title {
            width: 70%;
            line-height: 1;
            margin: auto 0;
          }
          .todo-genre-search {
            margin: auto 0;
          }
        }
        .todo-search-input {
          display: none;
        }
        .todo-markRead {
          margin: 4px;
          display: flex;
          justify-content: flex-end;
        }
      }
    }
  }
  .scroll-host {
    &::-webkit-scrollbar {
      width: 8px;
      height: 10px;
    }
    &::-webkit-scrollbar-thumb {
      background-color: #6e6e6e;
      outline: 1px solid #333;
      border-radius: 10px;
      box-shadow: 0 0 2px rgba(0, 0, 0, 0.65);
    }
    &::-webkit-scrollbar-track {
      -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    }
  }
}


.apes-todo-list-main {
  .apes-list-item {
    padding: 6px 0;
  }
}
.#{$todo-prefix-cls}-list {
  border: 1px solid #fff;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  &:hover {
    border: 1px solid #ecf6f6;
    background: #ecf6f6;
  }
  .#{$style-prefix}-list-item-meta-avatar {
    margin-right: 8px;
  }
  .#{$style-prefix}-list-item-meta-title {
    position: relative;
    &:hover {
      cursor: pointer;
      .#{$todo-prefix-cls}-list-business {
        color: #00a09d;
        //text-decoration: underline;
      }
    }
    .#{$todo-prefix-cls}-list-business {
      font-size:15px;
    }
    .#{$todo-prefix-cls}-list-type {
      position: absolute;
      right: 0;
      top: 0;
      border-radius: 4px;
      background: #ecf6f6;
      padding: 0 5px;
      color: #00a09d;
      font-size: 13px;
      line-height: 1.5;
    }
  }
  .description {
    padding-left: 15px;
    margin-bottom: 0;
    overflow: hidden;
    &.showMore {
      //height: 57px;
    }
  }
}

